package com.ecut.property_project.service.project;

import com.ecut.property_project.mapper.project.ProjectDeptMapper;
import com.ecut.property_project.model.project.ProjectDept;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProjectDeptService{

    @Resource
    private ProjectDeptMapper projectDeptMapper;

    
    public int deleteByPrimaryKey(Integer deptId) {
        return projectDeptMapper.deleteByPrimaryKey(deptId);
    }

    
    public int insert(ProjectDept record) {
        return projectDeptMapper.insert(record);
    }

    
    public int insertSelective(ProjectDept record) {
        return projectDeptMapper.insertSelective(record);
    }

    public List<ProjectDept> selectAll(){ return projectDeptMapper.selectAll(); }

    public List<ProjectDept> selectByPage(Integer page, Integer pageSize){return projectDeptMapper.selectByPage(page,pageSize);}

    public ProjectDept selectByPrimaryKey(Integer deptId) {
        return projectDeptMapper.selectByPrimaryKey(deptId);
    }
    public List<ProjectDept> selectByHeadId(String headId){
        return projectDeptMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(ProjectDept record) {
        return projectDeptMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ProjectDept record) {
        return projectDeptMapper.updateByPrimaryKey(record);
    }

}
